Creation information for an image. More...
#include <kanzi/gfx/create_info.hpp>
Classes | |
| struct | SliceInitialData |
| Description of a single slice of initial data. More... | |
Public Types | |
| using | HandleType |
| Image handle. | |
Public Attributes | |
| uint16_t | arraySize |
| The size of the image array. | |
| v3u32 | dimensions |
| The pixel dimensions of the image. | |
| Format | format |
| The pixel format of the image. | |
| vector< SliceInitialData > | initialData |
| Initial data for the image. | |
| uint8_t | mipLevels |
| The number of mip levels. | |
| MultisampleCount | multisampleCount |
| The number of samples for multisample anti-aliasing. | |
| gfx::NativeTextureHandle | nativeHandleInfo |
| Contains an optional external texture handle. | |
| SwizzleMask | swizzleMask |
| The swizzle mask used when sampling the image. | |
| bool | takeNativeTextureHandleOwnership |
| Should backend take a ownership of the native texture handle. | |
| ImageType | type |
| The image type. | |
| ImageUsageFlag | usageFlag |
| Expected usage of the image. | |
Public Attributes inherited from kanzi::gfx::BaseCreateInfo | |
| string_view | name |
| The name of the graphics object, useful for debugging. | |
Creation information for an image.
An image contains pixel data that can be sampled by a shader.
Image handle.
| uint16_t kanzi::gfx::ImageCreateInfo::arraySize |
The size of the image array.
| Format kanzi::gfx::ImageCreateInfo::format |
The pixel format of the image.
| v3u32 kanzi::gfx::ImageCreateInfo::dimensions |
The pixel dimensions of the image.
| ImageUsageFlag kanzi::gfx::ImageCreateInfo::usageFlag |
Expected usage of the image.
| ImageType kanzi::gfx::ImageCreateInfo::type |
The image type.
| uint8_t kanzi::gfx::ImageCreateInfo::mipLevels |
The number of mip levels.
| MultisampleCount kanzi::gfx::ImageCreateInfo::multisampleCount |
The number of samples for multisample anti-aliasing.
| SwizzleMask kanzi::gfx::ImageCreateInfo::swizzleMask |
The swizzle mask used when sampling the image.
| vector<SliceInitialData> kanzi::gfx::ImageCreateInfo::initialData |
Initial data for the image.
The local copy of this data is required only during the create function. The data is expected to be tightly packed with no padding between rows.
For Cubemap faces, the order is +X, -X, +Y, -Y, +Z, -Z.
| gfx::NativeTextureHandle kanzi::gfx::ImageCreateInfo::nativeHandleInfo |
Contains an optional external texture handle.
When set the backend wraps the external handle instead of creating a new resource.
| bool kanzi::gfx::ImageCreateInfo::takeNativeTextureHandleOwnership |
Should backend take a ownership of the native texture handle.
If ownership is taken then backend will try to free the native handle when image is freed.